const Sequelize = require('sequelize');
//远程 jeffery0712
//本地 123456

// 下一个迭代数据库
const sequelizeNext = new Sequelize('monitor_db_next', 'jeffery', 'a321657216', {
  host: '47.101.196.168',
  dialect: 'mysql',
  // operatorsAliases: false,
  dialectOptions: {
    charset: "utf8mb4",
    supportBigNumbers: true,
    bigNumberStrings: true
  },
  pool: {
    max: 500,
    min: 0,
    acquire: 30000,
    idle: 10000
  },
  timezone: '+08:00' //东八时区
});

// const sequelizeNext = new Sequelize('webfunny_db', 'root', 'webfunny_db_customer', {
//   host: '180.76.183.218',
//   dialect: 'mysql',
//   // operatorsAliases: false,
//   dialectOptions: {
//     charset: "utf8mb4",
//     supportBigNumbers: true,
//     bigNumberStrings: true
//   },
//   pool: {
//     max: 500,
//     min: 0,
//     acquire: 30000,
//     idle: 10000
//   },
//   timezone: '+08:00' //东八时区
// });

const emailConfig = {
  user: "jiang1125712@163.com", // generated ethereal user
  pass: "yingwei1125712" // generated ethereal password
}
const defaultUser = {
  user: "597873885@qq.com", // generated ethereal user
  pass: "123456" // generated ethereal password
}
module.exports = {
  sequelizeNext,
  emailConfig,
  defaultUser
}